//
//  MyCollectionReusableView.m
//  Trip
//
//  Created by dlios on 15-7-14.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "MyCollectionReusableView.h"

@implementation MyCollectionReusableView
- (instancetype)initWithFrame:(CGRect)frame
{
    
    self = [super initWithFrame:frame];
    if (self) {
        self.myLabel = [[UILabel alloc] init];
//        self.myLabel.backgroundColor = [UIColor lightGrayColor];
        self.myLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:self.myLabel];
        [_myLabel release];
    }
    
    return self;
    
}


- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes
{
    self.myLabel.frame = CGRectMake(0, 0, layoutAttributes.bounds.size.width, layoutAttributes.bounds.size.height);
}
@end
